caf_compile_executable(image_status_test_1 image_status_test_1.f90)

# The following tests require special flag passed to MPI runtime:
# `-disable-auto-cleanup`
caf_compile_executable(image_fail_test_1 image_fail_test_1.f90)
caf_compile_executable(image_fail_and_sync_test_1 image_fail_and_sync_test_1.f90)
caf_compile_executable(image_fail_and_sync_test_2 image_fail_and_sync_test_2.f90)
caf_compile_executable(image_fail_and_sync_test_3 image_fail_and_sync_test_3.f90)
caf_compile_executable(image_fail_and_status_test_1 image_fail_and_status_test_1.f90)
caf_compile_executable(image_fail_and_get_test_1 image_fail_and_get_test_1.f90)
caf_compile_executable(image_fail_and_failed_images_test_1 image_fail_and_failed_images_test_1.f90)
caf_compile_executable(image_fail_and_stopped_images_test_1 image_fail_and_stopped_images_test_1.f90)
set_target_properties(build_image_fail_test_1
  build_image_fail_and_sync_test_1
  build_image_fail_and_sync_test_2
  build_image_fail_and_sync_test_3
  build_image_fail_and_status_test_1
  build_image_fail_and_get_test_1
  build_image_fail_and_failed_images_test_1
  build_image_fail_and_stopped_images_test_1
  PROPERTIES MIN_IMAGES 3)
